import request from '@/api/request/axios'

// 短信群发接口
export const sendMsgs = (params) => request({
  url: window.CONFIG.testIdp + '/sendMsgs',
  method: 'post',
  data: params
})
// 查询客户信息接口
export const queryInfo = (params) => request({
  url: window.CONFIG.testIdp + '/queryInfo',
  method: 'post',
  data: params
})

// 短信验证码验证接口
// export const testCode=(params)=>request({
//   url:window.CONFIG.testUrl+'/testCode',
//   method:'post',
//   data:params
// })
// 交易密码验证接口
// export const testPassword=(params)=>request({
//   url:window.CONFIG.testUrl+'/testPassword',
//   method:'post',
//   data:params
// })

// 查询自营合同详情
export const querySelfContract = (params) => request({
  url: window.CONFIG.testIdp + '/querySelfContract',
  method: 'post',
  data: params
})
// 查询非自营合同详情
export const queryNoSelfContract = (params) => request({
  url: window.CONFIG.testIdp + '/queryNoSelfContract',
  method: 'post',
  data: params
})

// 短信验证码发送接口 Jp
export const sendCode = (params) => request({
  url: window.CONFIG.testIdp + '/sendCode',
  method: 'post',
  data: params
})
//借据详情新增接口 Jp
export const tnqContractDetailList = (params) => request({
  url: window.CONFIG.testUrl + '/msLoanNonFinService/tnqContractDetailList',
  method: 'post',
  data: params
})
//交易流水 Jp
export const queryCustomerLoadTransactionList = (params) => request({
  url: window.CONFIG.testUrl + '/LoanInfo/queryCustomerLoanTransactionList',
  method: 'post',
  data: params
})
//额度注销产品列表 Jp
export const queryCustomerLaonData = (params) => request({
  url: window.CONFIG.testUrl + '/LoanInfo/queryCustomerLoanData',
  method: 'post',
  data: params
})

//额度注销产品列表新接口 Jp
export const queryCustomerLoadProductCreditLimitList = (params) => request({
  url: window.CONFIG.testUrl + '/LoanInfo/queryCustomerLoanProductCreditLimitList',
  method: 'post',
  data: params
})

//产品额度注销记录查询 JP
export const queryProductCreditLimitRecord = (params) => request({
  url: window.CONFIG.testUrl + '/ProductCreditLimit/queryProductCreditLimitRecord',
  method: 'post',
  data: params
})

//产品额度是否能够注销 JP
export const queryProductCreditLimitCanCancel = (params) => request({
  url: window.CONFIG.testUrl + '/ProductCreditLimit/queryProductCreditLimitCanCancel',
  method: 'post',
  data: params
})

//额度注销 JP
export const execProductCreditLimitCancel = (params) => request({
  url: window.CONFIG.testUrl + '/ProductCreditLimit/execProductCreditLimitCancel',
  method: 'post',
  data: params
})

//线下还款开户 JP
export const offlineRepaymentApplyForAccount = (params) => request({
  url: window.CONFIG.testUrl + '/OfflineRepayment/offlineRepaymentApplyForAccount',
  method: 'post',
  data: params
})